<form action="<?php echo url('book/update'); ?>" method="post" enctype="multipart/form-data">
	<input type="hidden" name="id" value="<?php echo $record['id'];?>"/>
	<img src="<?php echo url('/assets/upload/'.$record['cover']);?>" alt=""/>
	<br/>
    <label for="cover">Cover</label>
    <input type="file" name="cover" />
    <br/>
    <label for="name">Name</label>
    <input type="text" name="name" value="<?php echo $record['name'];?>"/>
    <br/>
    <label for="author">Author</label>
    <input type="text" name="author" value="<?php echo $record['author'];?>" />
    <br/>
    <label for="page">Page</label>
    <input type="text" name="page" value="<?php echo $record['page'];?>" />
    <br/>
    <input type="submit" value="Insert" />
    <a href="<?php echo url('book/index'); ?>">返回</a>
</form>